[IT] API Options

Friday, 30 April 2021 13:26:11
Total Iterations

1

Total Assertions

11

Total Failed Tests

2

Total Skipped Tests

0


File Information
Collection: [IT] API Options
Environment: Nightlies
Collection Description
``` Feature: options It's a scenario which check if options call asked by the mobile is correctly returned Scenario: Get options in logged off mode and Not russian Scenario: Get options in logged off mode and russian ```
Timings and Data
Total run duration: 236ms
Total data received: 3.53KB
Average response time: 72ms
Summary Item Total Failed
Requests 2 0
Prerequest Scripts 4 0
Test Scripts 4 0
Assertions 11 2
Skipped Tests 0 -



Showing 2 Failures

Failed Test: Logged off user should no get availability_types

Assertion Error Message
expected undefined to deeply equal null
Failed Test: Logged off user should get report types

Assertion Error Message
Cannot read property 'map' of null


There are no skipped tests



1 Iteration available to view
Request Information
Request Method: OPTIONS
Request URL: http://varnish/api/
Response Information
Response Code: 200 - OK
Mean time per request: 121ms
Mean size per request: 1.76KB

Test Pass Percentage
80 %
Request Headers
Header NameHeader Value
Host varnish
Content-Type application/json; charset=utf-8
Accept-Language en-US
User-Agent PostmanRuntime/7.26.8
Accept */*
Cache-Control no-cache
Postman-Token f88388fa-dd49-4e30-a913-7050dac51b99
Accept-Encoding gzip, deflate, br
Connection keep-alive
Response Headers
Header NameHeader Value
Content-Type application/json
Content-Length 1807
Date Fri, 30 Apr 2021 13:26:11 GMT
X-Backend gateway
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Accept-Ranges bytes
Connection keep-alive
Response Body
{"status":200,"data":{"sso":{"facebook":{"enable":true},"google":{"enable":false},"vk":{"enable":false},"password":{"enable":true},"sms":{"enable":false,"country_codes":["FR","US","CA","DK","NO","BE","PL"]}},"report_types":null,"achievement_types":[{"id":"799","name":"COCA_COLA","status":1,"credits":0,"max_times":1},{"id":"796","name":"END_TUTORIAL","status":1,"credits":0,"max_times":1},{"id":"533","name":"FACEBOOK_CONNECT","status":1,"credits":0,"max_times":1},{"id":"534","name":"FACEBOOK_LIKE","status":1,"credits":0,"max_times":1},{"id":"537","name":"INVITE","status":1,"credits":5,"max_times":1000},{"id":"798","name":"NESCAFE_END","status":1,"credits":0,"max_times":1},{"id":"797","name":"NESCAFE_START","status":1,"credits":0,"max_times":1},{"id":"538","name":"NEW_ACCOUNT","status":1,"credits":3,"max_times":1},{"id":"536","name":"RATE_APP","status":1,"credits":0,"max_times":1},{"id":"791","name":"SOCIAL_LIKE","status":1,"credits":0,"max_times":1},{"id":"792","name":"START_TUTORIAL","status":1,"credits":0,"max_times":1},{"id":"795","name":"TUTORIAL_CHARM_PROFILE","status":1,"credits":1,"max_times":1},{"id":"793","name":"TUTORIAL_LIKE_PROFILE","status":1,"credits":0,"max_times":2},{"id":"794","name":"TUTORIAL_STEP_2","status":1,"credits":0,"max_times":1},{"id":"535","name":"UPDATE_PICTURE","status":1,"credits":0,"max_times":5}],"last_tos_version":"b54adc00-67f9-11d9-9669-0800200c9a66","last_cookie_v1_version":"a6805620-61ec-11ea-bc55-0242ac130003","last_cookie_v2_version":"f7df26e0-1871-11eb-8080-808080808080","ads_inventory":null,"shop_template":1,"shop":[],"crush_time":null,"charms_sent":{"enable":true},"timeline":null,"has_pending_likes":{"enable":false},"force_update":{},"cookie_version_enabled":false,"app_tracking_transparency_enabled":false},"success":true,"error_code":0}
Test Information
NamePassedFailedSkipped
Logged off user should no get availability_types 0 1 0
Logged off user should get report types 0 1 0
Logged off user should get achievement types 1 0 0
Logged off user should have shop_template value 1 1 0 0
Logged off user should not have ads inventory 1 0 0
Logged off user should not have have crush time configuration 1 0 0
Logged off user should not have have timeline configuration 1 0 0
Logged off user should have last tos version 1 0 0
Logged off user should have charms_sent enabled 1 0 0
Logged off user should have appropriate sso options 1 0 0
Total 8 2 0
Test Failures
Test NameAssertion Error
Logged off user should no get availability_types
expected undefined to deeply equal null
Logged off user should get report types
Cannot read property 'map' of null
Request Information
Request Method: OPTIONS
Request URL: http://varnish/api/
Response Information
Response Code: 200 - OK
Mean time per request: 23ms
Mean size per request: 1.76KB

Test Pass Percentage
100 %
Request Headers
Header NameHeader Value
Host varnish
Content-Type application/json; charset=utf-8
Accept-Language ru-RU
User-Agent PostmanRuntime/7.26.8
Accept */*
Cache-Control no-cache
Postman-Token 2ef86f5a-6571-47b2-a49d-a680b15fa0cc
Accept-Encoding gzip, deflate, br
Connection keep-alive
Response Headers
Header NameHeader Value
Content-Type application/json
Content-Length 1807
Date Fri, 30 Apr 2021 13:26:11 GMT
X-Backend gateway
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Accept-Ranges bytes
Connection keep-alive
Response Body
{"status":200,"data":{"sso":{"facebook":{"enable":true},"google":{"enable":false},"vk":{"enable":false},"password":{"enable":true},"sms":{"enable":false,"country_codes":["FR","US","CA","DK","NO","BE","PL"]}},"report_types":null,"achievement_types":[{"id":"799","name":"COCA_COLA","status":1,"credits":0,"max_times":1},{"id":"796","name":"END_TUTORIAL","status":1,"credits":0,"max_times":1},{"id":"533","name":"FACEBOOK_CONNECT","status":1,"credits":0,"max_times":1},{"id":"534","name":"FACEBOOK_LIKE","status":1,"credits":0,"max_times":1},{"id":"537","name":"INVITE","status":1,"credits":5,"max_times":1000},{"id":"798","name":"NESCAFE_END","status":1,"credits":0,"max_times":1},{"id":"797","name":"NESCAFE_START","status":1,"credits":0,"max_times":1},{"id":"538","name":"NEW_ACCOUNT","status":1,"credits":3,"max_times":1},{"id":"536","name":"RATE_APP","status":1,"credits":0,"max_times":1},{"id":"791","name":"SOCIAL_LIKE","status":1,"credits":0,"max_times":1},{"id":"792","name":"START_TUTORIAL","status":1,"credits":0,"max_times":1},{"id":"795","name":"TUTORIAL_CHARM_PROFILE","status":1,"credits":1,"max_times":1},{"id":"793","name":"TUTORIAL_LIKE_PROFILE","status":1,"credits":0,"max_times":2},{"id":"794","name":"TUTORIAL_STEP_2","status":1,"credits":0,"max_times":1},{"id":"535","name":"UPDATE_PICTURE","status":1,"credits":0,"max_times":5}],"last_tos_version":"b54adc00-67f9-11d9-9669-0800200c9a66","last_cookie_v1_version":"a6805620-61ec-11ea-bc55-0242ac130003","last_cookie_v2_version":"f7df26e0-1871-11eb-8080-808080808080","ads_inventory":null,"shop_template":1,"shop":[],"crush_time":null,"charms_sent":{"enable":true},"timeline":null,"has_pending_likes":{"enable":false},"force_update":{},"cookie_version_enabled":false,"app_tracking_transparency_enabled":false},"success":true,"error_code":0}
Test Information
NamePassedFailedSkipped
Logged off user should have appropriate sso options 1 0 0
Total 1 0 0
Test Failure
Test NameAssertion Error